package tests;

import java.util.ArrayList;
import java.util.Collections;

import br.ufrj.dcc.geti.riskanalytics.simulator.Sampleble;
import br.ufrj.dcc.geti.riskanalytics.simulator.Triangular;

public class TestTriangThiago {
	
	public static int MAX_SAMPLES = 1000; 
	
	public static void main(String[] args) {
		
		ArrayList<Double> samples = new ArrayList<Double>();
		
		for (int i = 0; i < MAX_SAMPLES; i++) {
			
			Sampleble s = new Triangular(2,4,6);
			samples.add(s.getSample());
			
			//printSample(s.getSample());
		}
		
		Collections.sort(samples);
		
		ArrayList<Bean> beans = new ArrayList<Bean>();
		
	}
	
	public static void printSample(double s) {
		
		//printa com , ao inves de . -> para plotar graficos no excel
		String strS = String.valueOf(s);
		strS = strS.replace(".", ",");
				
		System.out.println(strS);
		
	}

}
